Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / PostScript Imaging Messages


GXPostScriptProcessShape

QuickDraw GX sends the GXPostScriptProcessShape message when converting a shape object into PostScript. You can override the GXPostScriptProcessShape message to exercise imaging control for a shape. Your override of the GXPostScriptProcessShape message must match the following formal declaration:

OSErr MyPostScriptProcessShape (gxShape aShape, long count,
                               gxTransform list[]);
aShape
The shape object that is to be printed.
count
The number of transform objects in the transform list.
list
A list of transforms through which the shape needs to be mapped when converted to PostScript.
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX sends the GXPostScriptProcessShape message to provide you with imaging control for individual shapes.

The default implementation of this message takes a shape and produces the PostScript code needed to image the shape.

You can override this message to change the way that a shape is imaged on a PostScript device.

Note
QuickDraw GX internally tracks the state of the printer. If you override this message, then QuickDraw GX's version of the printer's state can become out of sync with the hardware. This means that if you override this message for any shapes, you need to override it for all shapes.
SPECIAL CONSIDERATIONS
You can modify the shape or the transform list before forwarding the GXPostScriptProcessShape message, or you can totally override the GXPostScriptProcessShape message to change the PostScript code that is generated for the shape.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help